package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户收藏对象 collect
 *
 * @author AousVolad
 * @date 2024-06-27
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
public class Collect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long favoriteId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 文章ID */
    @Excel(name = "文章ID")
    private Long articleId;

    /** 视频ID */
    @Excel(name = "视频ID")
    private Long videosId;

    /** 最近修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最近修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifiedAt;

    /** 用户删除标记 */
    private String deletedFlag;



    private Articles articlesList;
    private Videos videosList;
}
